package com.ymatou.iapi.productmanager.service.old;

import java.util.Map;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;
import com.ymttest.utils.compare.CallAPI;

public class GetNewProductDescriptionInfoCall extends YmatouAutoTestCall implements CallAPI{
	private static String opurl ="api/SellerProduct/GetNewProductDescriptionInfo";

	public GetNewProductDescriptionInfoCall() {
		super(EnvSetup.getSystemUrl("productmanager"),opurl,"GET","JSON");
	}
	public GetNewProductDescriptionInfoCall(String systemUrl) {
		super(systemUrl,opurl,"GET","JSON");
	}
	
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}
	
	
	public static void main(String[] args) {
		GetNewProductDescriptionInfoCall aCall = new GetNewProductDescriptionInfoCall();
		aCall.callAndGetReturnData(MapUtil.hashMap("ProductId","ffccfb53-b0bd-4104-8ebb-498d708adfe9","UserId",20336378));
	}


	@Override
	public JSONObject callAndReturn(Map<String, Object> paramMap) {
		return this.callAndGetReturnData(paramMap);
	}


	@Override
	public String getApiName() {
		return "GetNewProductDescriptionInfo";
	}
}
